MyUserPropsNotSetException
| Kind of class: | public class |
|---|---|
| Package: | com.smartfoxserver.redbox.exceptions |
| Inherits from: | Error |
| Author: | The gotoAndPlay() Team http://www.smartfoxserver.com http://www.gotoandplay.it |
| Classpath: | com.smartfoxserver.redbox.exceptions.MyUserPropsNotSetException |
| File last modified: | Tuesday, 26 February 2008, 11:55:11 |
A RedBox exception.
Constructor
MyUserPropsNotSetException
public function MyUserPropsNotSetException (
)
Thrown when the "myUser" properties in the SmartFoxClient instance are not set.
The RedBox classes make an extensive use of the SmartFoxClient.myUserId and SmartFoxClient.myUserName properties. In case of custom login, these two properties are not set automatically by the SmartFoxClient instance.
In this case, when one of the main RedBox classes is instantiated, the exception is raised.
The RedBox classes make an extensive use of the SmartFoxClient.myUserId and SmartFoxClient.myUserName properties. In case of custom login, these two properties are not set automatically by the SmartFoxClient instance.
In this case, when one of the main RedBox classes is instantiated, the exception is raised.
Example:
- The following example shows how to handle the "MyUserPropsNotSetException" exception.
try { var avChatMan:AVChatManager = new AVChatManager(smartFox, "127.0.0.1", true) } catch (err:MyUserPropertiesNotSetException) { trace (err.message) }